home *** CD-ROM | disk | FTP | other *** search
/ Tricks of the Mac Game Programming Gurus / TricksOfTheMacGameProgrammingGurus.iso / Tools / Preditor 2.0 / Preditor Folder / LDC Source / C.ldf < prev    next >
Encoding:
Text File  |  1989-08-09  |  1.1 KB  |  38 lines  |  [TEXT/TCEd]

  1. #--------------------------------------------------------------
  2. #                 Description of the C language
  3. #
  4. #  by Thomas Carstensen                        May 14, 1989
  5. #--------------------------------------------------------------
  6.  
  7. LANGUAGE C
  8.  
  9. EXTENSION .h .c
  10.  
  11. COMMENT /* */        60   # Place comment at column 60
  12. COMMENT ONELINE // '¬'
  13.  
  14. BRACKET { }
  15. BRACKET [ ]
  16. BRACKET ( )
  17.  
  18. QUOTE ' '
  19. QUOTE " "
  20.  
  21. ESCAPE '\'
  22.  
  23. RESERVED  auto   break    case   char     continue default do  \
  24.           double else     entry  enum     extern   float   for \
  25.           goto   if       int    long     register return  short \
  26.           sizeof static   struct switch   typedef  union   unsigned \
  27.           void   while
  28.  
  29. DESCRIPTION " The C Programming Lanuage              written by Thomas Carstensen" \
  30.              "                    Wednesday, August 9, 1989"
  31.  
  32. TEMPLATES
  33.     If        -> 'if (' ^ ') {' [1] ^ [-1] }
  34.     While    -> 'while (' ^ ') {' [1] ^ [-1] }
  35.     Do        -> 'do {' [1] ^ [-1] '} while (' ^ );
  36.     Function -> '/*' [0] ' * ' ^ [0] ' */' [0] ^ ' ' ^ ( ^ ) [0] { [1] ^ [-1] }
  37.     Typedef    -> 'typedef struct' ^ { [1] ^ [-1] } ^ ;
  38.